package main.java;
import org.junit.After;
import org.junit.Test;

import java.io.ByteArrayInputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;

public class Template {
    static int a;
    static int[] b ={1,2,3};
    static int[][] c ={{1,2},{1,2},{1,2}};

    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        log.finest("finest");
    }
    int[] q;


    /**
     * 1、特殊情况有没有整理清楚：
     *
     * 2、规则有没有整理清楚：
     *
     * 3、为你
     */
    public static Logger log = Logger.getLogger(TestLogger.class.toString());
    @Test
    public void test1(){
        String data = "";
        System.setIn(new ByteArrayInputStream(data.getBytes()));
        String[] args={};
        log.setLevel(Level.ALL);//默认输出INFO以上的消息，用finest提交时就不会打印出来

        main(args);
    }
    @After
    public void after(){

    }
    @Test
    public void test2(){

             System.out.println(Template.toMyString());
    }

    public static String toMyString() {
        StringBuilder str= new StringBuilder();
        for( int i=0;i<c.length;i++)
            str.append(Arrays.toString(c[i]));
        return "Template{" +
                "a=" + a +
                ",b="+Arrays.toString(b)+
                ",c="+str+
                '}';
    }

    @Test
    public void name() throws Exception {
    }

    @Test
    public void name2() throws Exception {
    }

    @Override
    public String toString() {
        return "Template{" +
                "q=" + Arrays.toString(q) +
                '}';
    }
}
